const remote = require('@electron/remote')

window.addEventListener('DOMContentLoaded',()=>{
  const oBn =document.getElementById('btn')
  oBn.addEventListener('click',()=>{
    let indexMin = new remote.BrowserWindow({
      width: 200,
      height: 200
    })
    indexMin.loadFile('src/list.html')
    indexMin.on('close',()=>{
      indexMin = null
    })
  })
})